package com.zhoukun.cloud.controller;

import com.zhoukun.cloud.service.MessageProducImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.dc.pr.PRError;

import javax.annotation.Resource;

/**
 * @author zhoukun 86547462@qq.com
 * @version 1.0
 * @date 2020/10/30 2:10
 */
@RestController
public class MessageController {
    @Resource
    private MessageProducImpl messageProduc;

    @GetMapping("/send")
    public void  send(){
        messageProduc.send();
    }
}
